package com.ftf.tp.blog.infrastructure.mapper.pos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * @author tanghao
 * @date 2022/8/8
 */
/**
    * 文章专栏关系表

    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "article_column")
public class ArticleColumn {
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 文章id
     */
    @TableField(value = "article_id")
    private Long articleId;

    /**
     * 专栏id
     */
    @TableField(value = "column_id")
    private Long columnId;

    @TableField(value = "`column_name`")
    private String columnName;

    /**
     * 作者id
     */
    @TableField(value = "author_id")
    private Long authorId;

    /**
     * 作者名称
     */
    @TableField(value = "author_name")
    private String authorName;
}